//
//  UIImage+MLEXT.m
//  02-网易彩票
//
//  Created by 吴明磊 on 15/6/29.
//  Copyright (c) 2015年 wuminglei. All rights reserved.
//

#import "UIImage+MLEXT.h"

@implementation UIImage (MLEXT)

+(UIImage *)stretchWithImageName:(NSString *)imageName
{
    UIImage *image = [UIImage imageNamed:imageName];
    
    CGFloat left = image.size.width * 0.5;
    CGFloat top = image.size.height * 0.5;
   return  [image stretchableImageWithLeftCapWidth:left topCapHeight:top];
}
@end
